package com.tssf.car_manage.service;

import com.github.pagehelper.PageInfo;
import com.tssf.car_manage.entity.Vehicle;

import java.util.List;

public interface VehicleService {
    List<Vehicle> lists();

    List<Vehicle> Sealist(String license_plate);
    void delVehicle(int vehicle_id);
    int addvehicle(Vehicle vehicle);
    Integer getNextVehicleId();
    int update(Vehicle vehicle);

    Vehicle getById(int vehicle_id);
    // 新增分页查询方法
    PageInfo<Vehicle> listWithPage(int page, int pageSize);

    // 新增分页搜索方法
    PageInfo<Vehicle> searchWithPage(String key, int page, int pageSize);

}
